#ifndef BRIDGETOOL_H
#define BRIDGETOOL_H

#include <QObject>
#include <functional>
typedef  void (*NoticeCallbackFunction)(QString title ,QString body , void *userdata) ;

class BridgeTool : public QObject
{
    Q_OBJECT
public:
    explicit BridgeTool(QObject *parent = nullptr);
    Q_INVOKABLE QString loginNetWorkPack(QString username , QString password);

    Q_INVOKABLE QString registerNetWorkPack(QString username , QString password , QString email);

    Q_INVOKABLE QString loginDeviceNetWorkPack(QString deviceToken);
    static int  TcpRecvCallback(std::string& recvMessage ,NoticeCallbackFunction cb , void *userdata);
signals:

public slots:
};

#endif // BRIDGETOOL_H
